package com.framework.modules.base.entity;

import com.framework.common.model.config.ConfigOperationIncomeRatio;
import com.framework.modules.live.entity.LiveRewardsEntity;

import java.math.BigDecimal;

/**
 * 收益结算
 */
public class SetteleLiveRewardsEntity {

    /**
     * 用户uid
     */
    private Integer uid;
    /**
     *总的收入
     */
    private Integer totalIncomeCoin;
    /**
     *工会id
     */
    private Integer guildId;
    /**
     *工会给主播的分成比例
     */
    private BigDecimal memberProfitRate;
    /**
     * 平台给工会的分成比例
     */
    private BigDecimal guildProfitRate;

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getTotalIncomeCoin() {
        return totalIncomeCoin;
    }

    public void setTotalIncomeCoin(Integer totalIncomeCoin) {
        this.totalIncomeCoin = totalIncomeCoin;
    }

    public Integer getGuildId() {
        return guildId;
    }

    public void setGuildId(Integer guildId) {
        this.guildId = guildId;
    }

    public BigDecimal getMemberProfitRate() {
        return memberProfitRate;
    }

    public void setMemberProfitRate(BigDecimal memberProfitRate) {
        this.memberProfitRate = memberProfitRate;
    }

    public BigDecimal getGuildProfitRate() {
        return guildProfitRate;
    }

    public void setGuildProfitRate(BigDecimal guildProfitRate) {
        this.guildProfitRate = guildProfitRate;
    }

    class SettleResult{

        private BigDecimal platform;
        private BigDecimal guild;
        private BigDecimal user;

        public BigDecimal getPlatform() {
            return platform;
        }

        public void setPlatform(BigDecimal platform) {
            this.platform = platform;
        }

        public BigDecimal getGuild() {
            return guild;
        }

        public void setGuild(BigDecimal guild) {
            this.guild = guild;
        }

        public BigDecimal getUser() {
            return user;
        }

        public void setUser(BigDecimal user) {
            this.user = user;
        }
    }

    static SettleResult ComputeLiveRewardItem(LiveRewardsEntity entity , ConfigOperationIncomeRatio rate){
        return null;
    }
}
